package com.bohua.intermediary.controller;


import com.bohua.intermediary.common.BaiDuZhi;
import com.bohua.intermediary.utils.FaceUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/loginpage")
public class FaceController {

    @RequestMapping("/login")
    @ResponseBody
    public BaiDuZhi login(String imageForBase64){

        return FaceUtils.ContrastFace(imageForBase64);
    }
}
